﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DongFangGuoKai.WMSPlatform.Domain.Models
{
    ///<summary>
    ///入库垛信息
    ///</summary>
    [SugarTable("DBO.t_StackingStorage")]
    public partial class t_StackingStorage
    {
        public t_StackingStorage()
        {


        }
        /// <summary>
        /// Desc:主键
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? WarehouseCode { get; set; }

        /// <summary>
        /// Desc:库房名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? WarehouseName { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? AreaCode { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? AreaName { get; set; }

        /// <summary>
        /// Desc:关联单详情Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? RelatedOrderDetailId { get; set; }

        /// <summary>
        /// Desc:单据类型Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? BillType { get; set; }

        /// <summary>
        /// Desc:状态：0-失效；1-生效 2-上架;
        /// Default:0
        /// Nullable:False
        /// </summary>           
        public int Status { get; set; }

        /// <summary>
        /// Desc:垛条码
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string PalletBarcode { get; set; }

        /// <summary>
        /// Desc:子托盘数，没有子托盘可以是0
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public int? SubTrayQTY { get; set; }

        /// <summary>
        /// Desc:包装数量/箱数量
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public int? PackQTY { get; set; }

        /// <summary>
        /// Desc:货品数量
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public decimal? QTY { get; set; }

        /// <summary>
        /// Desc:预留分配的收货仓位
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ExpectedLocation { get; set; }

        /// <summary>
        /// Desc:垛总长：单位厘米
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? TotalLength { get; set; }

        /// <summary>
        /// Desc:垛总宽：单位厘米
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? TotalWidth { get; set; }

        /// <summary>
        /// Desc:垛总高：单位厘米
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? TotalHeight { get; set; }

        /// <summary>
        /// Desc:垛体积：单位立方厘米
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? TotalVolume { get; set; }

        /// <summary>
        /// Desc:垛重量：单位千克
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? TotalWeight { get; set; }

        /// <summary>
        /// Desc:备注
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Remark { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:DateTime.Now
        /// Nullable:False
        /// </summary>           
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// Desc:先入先出日期时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? FIFODate { get; set; }

        /// <summary>
        /// Desc:创建人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CreateUserId { get; set; }

        /// <summary>
        /// Desc:创建人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? CreateUserName { get; set; }

        /// <summary>
        /// Desc:修改时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        /// Desc:修改人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? ModifyUserId { get; set; }

        /// <summary>
        /// Desc:修改人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ModifyUserName { get; set; }

        /// <summary>
        /// Desc:物料Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public long? MaterialId { get; set; }

        /// <summary>
        /// Desc:物料编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialCode { get; set; }

        /// <summary>
        /// Desc:物料名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialName { get; set; }

        /// <summary>
        /// Desc:物料批次信息Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? MaterialKeyId { get; set; }

        /// <summary>
        /// Desc:批次号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? BatchNO { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? CacheLocation { get; set; }

        /// <summary>
        /// Desc:所属逻辑分区编号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? LogicalPartCode { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? WoodPalletBarcode { get; set; }

        /// <summary>
        /// Desc:
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public bool? IsMultPallet { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ParentPalletBarcode { get; set; }

        /// <summary>
        /// Desc:委托单号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string OrderNo { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Code { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? TagIndex { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? NWall { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? SeqNum { get; set; }

    }
}
